package com.zzb.inherit;

public class Refrigerator extends Appliances{//子类   冰箱类

    //属性
    private String door;//门款式
    private String refrigeration;//制冷方式

    //构造器

    public Refrigerator() {
    }

    public Refrigerator(String door, String refrigeration) {
        this.door = door;
        this.refrigeration = refrigeration;
    }

    public Refrigerator(String brand, String model, String color, double price, String door, String refrigeration) {
        super(brand, model, color, price);
        this.door = door;
        this.refrigeration = refrigeration;
    }

    public String getDoor() {
        return door;
    }

    public void setDoor(String door) {
        this.door = door;
    }

    public String getRefrigeration() {
        return refrigeration;
    }

    public void setRefrigeration(String refrigeration) {
        this.refrigeration = refrigeration;
    }

    @Override
    public String toString() {
        return "Refrigerator{" +
                "brand='" + getBrand() + '\'' +
                ", model='" + getModel() + '\'' +
                ", color='" + getColor() + '\'' +
                ", price=" + getPrice() + '\'' +
                "door='" + door + '\'' +
                ", refrigeration='" + refrigeration + '\'' +
                '}';
    }
}
